package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Goods;

import java.util.List;

public interface GoodsService {

    public PageResult findPage(QueryPageBean queryPageBean);

    public Goods findById(Integer id);

    public void add(Goods goods);

    public void upGoods(Integer id) throws Exception;

    public void downGoods(Integer id) throws Exception;

    public void delete(Integer id);

    public void updateStatus(Integer id, String status);

    public List<Goods> findAll();

    Result buy(Integer goodId, Integer buyNum);
}
